<template>
  <div class="container-footer-link">
    <span class="item-title">{{title}}</span>
    <div class="group-link">
      <template v-for="(temp, index) in links">
        <mivaLink :key="index" :to="temp.to" class="item">{{temp.title}}</mivaLink>
      </template>
    </div>
  </div>
</template>

<script>
export default {
    props: {
        title: {
            type: String,
            default: 'MIMIVA',
        },
        links: Array,
    },
};
</script>

<style lang="less">
@_border: 5px dashed #eee;

.container-footer-link {
  padding-left: 40px;
  border-left: @_border;
  flex: 2;
  &:not(:last-child) {
    margin-right: 20px;
  }
  &:first-child {
    border-left: @_border;
  }
  &:last-child {
    border-right: @_border;
  }
  .item-title {
    height: 20px;
    margin-bottom: 20px;
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
  }
  .group-link {
    height: 96px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
    .item {
      margin-bottom: 10px;
      font-size: 14px;
      color: #fff;
    }
  }
}
</style>
